package com.example.mapper;

import com.example.pojo.User_details;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2024-06-01
 */
public interface User_detailsMapper extends BaseMapper<User_details> {

    @Update("update user_details set coins = coins + #{coins} where uid = #{uid}")
    void czCoins(@RequestParam("coins") Integer coins,@RequestParam("uid") Integer uid);
}
